Remus: use imqebt instead of ebtables
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 3 Feb 2010 09:37:40 +0000 (09:37 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 3 Feb 2010 09:37:40 +0000 (09:37 +0000)
I added a standalone IMQ-aware ebtables version in the initial Remus
submission, but forgot to actually activate it. This fixes that
oversight.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
tools/remus/remus

index 53d9d7b5afc4a708a7c92934bfd76407ca8957c0..d5c8b9ce39d2f43d49bbe9e4b15bd863b84f5c15 100644 (file)
@@ -199,8 +199,8 @@ class Netbuffer(BufferedDevice):
         for mod in ['sch_queue', 'imq', 'ebt_imq']:
             util.runcmd(['modprobe', mod])
         util.runcmd("ip link set %s up" % (imqdev))
-        util.runcmd("ebtables -F FORWARD")
-        util.runcmd("ebtables -A FORWARD -i %s -j imq --todev %s" % (vid, imqdev))
+        util.runcmd("%s -F FORWARD" % (imqebt))
+        util.runcmd("%s -A FORWARD -i %s -j imq --todev %s" % (imqebt, vid, imqdev))
 
         return imqdev